/*
---
script: dialog.js
description: ---
license: MIT-style license
authors:
- Christian Merz
requires:
- core:1.3.2/Element.Event
provides: [dialogCME]
...
*/
window.addEvent('domready', function(){

     var dialogCme = new DialogCME({
		'title':'Form Tawar Komoditi',
		'content':
                    "<table>\n\
                        <tr>\n\
                            <td align='left'><label>Waktu</label></td></tr>\n\
						<tr>\n\
                            <td align='left'><label>Deposit</label></td></tr>\n\
						<tr>\n\
							<td align='left'>\n\
							<img src='images/komoditi-beras.jpg' height='180px' width='180px' align='top'/></td>\n\
						    <td align='left'><p>Komoditi</p>\n\
							<p>Jenis Komoditi</p>\n\
							<p>Status</p>\n\
							<p>Lokasi</p>\n\
							<p>Kuantitas</p>\n\
							<p>Satuan</p>\n\
							<p>Harga per Kuantitas</p></td>\n\
						</tr>\n\
						</table>\n\
						<div id='box-bid' align='center'>\n\
						<table align='center'>\n\
							<tr align='center>\n\
								<td align='center'><h3>Tawar Komoditi</h3></td>\n\
							</tr>\n\
							<tr>\n\
								<td align='left'><label>Harga Tawar per Kuantitas</label></td><td><input type='text' size='15'></td></tr>\n\
							<tr>\n\
								<td align='left'><label>Kuantitas Tawar</label></td><td><input type='text' size='15'></td></tr>\n\
							<tr>\n\
								<td align='center'><input type='submit' value='Tawar'></td>\n\
								<td align='center'><input type='button' value='Kembali'></td></tr>\n\
							</table></div>\n\
							<br>\n\
							<h3>Daftar Harga Tawaran</h3>\n\
						<table border='1' width='380' align='center'>\n\
							<tr align='center'>\n\
								<td>No</td>\n\
								<td>Harga Tawaran per Kuantitas</td>\n\
								<td>Waktu Tawar</td>\n\
								<td>Total Pembayaran</td>\n\
							<tr>\n\
								<td>1</td>\n\
								<td>120.000</td>\n\
								<td>09:30:31</td>\n\
								<td></td>\n\
							<tr>\n\
								<td>2</td>\n\
								<td>100.000</td>\n\
								<td>09:28:03</td>\n\
								<td></td>\n\
						</table>",
		'cancel':{
			'exists':true,
			'value':'Kembali',
			'fn': function(e){
				this.hide()
			}
		}
	});
    
    $('auctionBid').addEvent('click', function(e){
        e = new Event(e).stop();
        dialogCme.show();
    }
.bind(this));
});